import request from '@/utils/request';

export async function getEhsStandardByPage (params: any) {
    return request('/api/device/getEhsStandardByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addEhsStandard (params: any) {
    return request('/api/device/addEhsStandard', {
    method: 'POST',
    data: params,
  });
}

export async function updateEhsStandard (params: any) {
    return request('/api/device/updateEhsStandard', {
    method: 'POST',
    data: params,
  });
}

export async function delEhsStandard (params: any) {
    return request('/api/device/delEhsStandard', {
    method: 'POST',
    data: params,
  });
}


export async function exportEhsStandard(params: any) {
    return request('/api/device/exportEhsStandard', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getEhsStandardByPage, addEhsStandard, updateEhsStandard, delEhsStandard, exportEhsStandard }
